finish sign in method