improved form creation check