Fixed a minor bug while login with wrong password.