Validate rich text fields correctly

[#61360424]