Base inputvalidation directive