fixed bug in sign in