HUE-1047 [core] Invalid form submission blocks next submission

Changed the form submission code to listen to ajax loaded forms