Fixed nullpointer when login with wrong password