finish sign in and sign out