finalize login/logout