fixed bugs in sign in