Make sure to check for invalid fields.