fixed a few sign-in bugs