Form works fine standalone, but not when it is embedded in my web page