make sure that all of your form elements have a type attribute.
for example:
<input name="firstName" id="firstName" value="" />
can cause an error since the type attribute is missing.
that should be changed to:
<input type="text" name="firstName" id="firstName" value="" />