homepage redirects to user profile if cookie is stored on computer