add validations to events