Add test to check if the user is logged in