bug fix in sign in