Add validation for events.

Display error message if validation errors exist.

@maartenjacobs #3