finish sign-in/sign-out process