modified event.rb with potential validations