add validation in event model