Reformat form errors so errors are organized by form key.