Fixed login redirection.