Fixed login error redirection