Directives for angularjs field validation