added flash error, added rspec tests for event validations, added factory for events.