Use ng-model and ng-required for smarter form validation