Added some sign in logic.