Form does not get submitted, it is getting stuck on "Please wait...".