repair login redirection