minor bugfix, improved form checking when adding submit callback for petition forms