insert logoutWithoutDevice method