Added some newlines for readability.
Implemented 'on' option for validations.
Added tests for on create/update/save
updated tests
Merge branch 'add-on-validations' into psr-0-compliant