Changed code to insert an earlyFormSubmitObserver