fix the error flash in sign in