added some validation for creating an event on the fly