directive for add validator on inputs