redirects to profile if already logged in