improvement on redirection after authentication (continue)