finish sign_in and sign_out