AngularJS server form validation