Checking if the user is logged in on the homepage