Finish login-logout