Fixed bug of login success with wrong password