Fix: for AngularJS 1.3.x

Using the new `$validators` pipeline for validation.