finalize sign-in-sign-out