[V4] Adds a helper for displaying validation error messages

rebased #608.