- added custom validator example. Closes #578