Create loggedin.php