AngularJS form validation.