Adds a helper for displaying validation error messages