redirect to profile page if logged in when home page is visited