introduce angularValidatorProvider to fix angular issue 1404

see https://github.com/angular/angular.js/issues/1404