added functionality to sign in