I was just checking to see if you had Form Builder. I have already logged a bug under Validation Toolkit for this. For now, if you change where it references the form index:
form[0]
to reference the form name:
getElementById('form1')
where form1 is the name of the form being validated.
Then the validation will be applied to the correct form even if you add a new form above it.