Updated homepage logic to check for isloggedin