explanation of validateOnEvent