User gets redirected to profile page if logged in.