fixed a bug introuced last class with sign-in