Moved custom validator to the validator library 

Signed-off-by: Exikle <dixondcunha@hotmail.com>