Bug fixed when the login fails