modified to return array or errors and fieldPaths, unit tests not updated