validation errors trigger an invalid event
Merge pull request #363 from truk/gh-pages

Chapter 11: validation should check for "invalid" event