Fixed login issue if password is incorrect