add validators and phpunit