Update loggedinonly.php