Corrections to some bugs in form submission after the cookieJar refactor.