Client-side validation module for AngularJS