Fixed a bug that could cause two forms on the same page with required fields from submitting properly.