directive to handle display of validation errors (from both client/server sides)