adding validations for events