if (is_dir($userlogin)) { header("$userlogin/index.php"); } else { echo("The username doesn't exist"); }