Fix login error counter