add ensure log out rule