Added validations to event.rb