validations in events