validation for events