redirect to profile if logged in