Fixes #1958: `beforeSubmit` in `yii.activeform` is now executed after validation and before form submission