AngularJS module to automate form validations