Add submitHandler option to the document