completed sign-in and sign-out