Validation service for Angular.js