[V2] Adds a helper for displaying validation error messages

Rebased #482.