I found this
post in the forum with a similar problem but I am not sure what they mean by not attaching the validator to the form element. I have looked at the samples and I believe I am doing the same thing. However, my data is still be validated when I click the cancel button.