Add text attribute validator and his phpunit test file