check metadata for required fields