Fixed login redirection