I've updated `canSubmitForm` method to use new logic.

Also I've found, that same submit button detection code (copy-paste) was used also during submit button searching upon form creation (an exception is thrown if no submit button is found in a form). Then I placed `canSubmitForm` method call there too to avoid code duplication.