wtforms if form.validate_on_submit() not working code example Example: validate on submit not working {{ form.csrf_token }}