Fix issue where required fields that were hidden were preventing submission.