fixed issues with allowedDomains form post handling