make sure the form is an instance of a dom node