Update chapters/03-internals.md

For validations:

```
.on("error", function() { ... })
``` 
Is now:

```
.on("invalid", function() { ... })
```

Updated the example so it now works correctly.