fix sign in bugs