created a sign in method