fix dedupe check and typo on form ID