Redirect correctly after authentication.