Added logout.php and checks for logged-in user on homepage