Redirect from login to profile if the user is already logged in.