Fix form validation check when submitting from iframe