Issue #2309323 by Berdir, tim.plunkett: Allow #submit and #validate to be specified as methods of the form object.