finish sign-in-out