Form conditions only working under HTTPS