Many thanks to the support team, I was able to fix this issue with their detailed help.
I was embedding the form two times in the site and that was the issue. Removing the second form from the site was the solution for this and it now works beautifully.