More complex example

In this example you are listening for event ShowErrors, which is called when the user press Check or Submit button.
Then you check if was a first event ShowErrors fired on the current page. You can save the result to your database and let the user to correct his
eventual mistakes.