Removed deprecated form.validate_on_submit()