sign in error checking bug