My conditional logic shows a MISSING FIELD error