An angularjs module for easier management of the form errors