Error when checking wrong password fixed