more verbose error message for missing fields