fix login redirection