Closes #474: Move custom validations to lib

 - Application of the patch
Merge pull request #1119 from GhiGt/issue-474

Closes #474: move custom validations to lib

We put our custom validators in a library validation class and then use validates.