Added logout button on profile.php and fixed 'no user' error