added support for ng-required