Directive for handling server side validation errors is broken