Fix broken login redirection.