added validations to event model