Trigger `onValidationError` event on input & form

Trigger a new `onValidationError` event on both input & form, whenever a validation error is encountered. This can help one to code advanced stuff like:
```js
$form.on('onValidationError', function(event, messages) {
    if (messages.length) {
        // do something
    }
});
```