redirect to profile page from home if user is logged in