title: Flask form not validating with HTML
body: <p>I've tried looking through the documentation and other posts on here, though I'm still having trouble.</p>
  <p><strong>views.py</strong></p>
  <pre><code>@bp.route('/')
  def index():
      return render_template(&quot;index.html&quot;)
  
  @bp.route('/newSearch', methods=['GET', 'POST'])
  def newSearch():
      form = NewSearchForm()
      if form.validate_on_submit():
          # DB code
          return redirect(url_for('newPage.html'))
      return render_template('newSearch.html', form=form)
  </code></pre>
  <p>Once the user enters a search query and clicks &quot;submit&quot; it should redirect to the results page. However, It's not validating the form correctly with my current form tag.</p>
  <p><strong>index.html</strong></p>
  <pre><code>&lt;form action=&quot;{{ url_for('newSearch') }}&quot; enctype=&quot;multipart/form-data&quot; method=&quot;post&quot;&gt;    
      &lt;input class=&quot;btn btn-primary&quot; type=&quot;submit&quot; value=&quot;Search&quot;&gt;&lt;/input&gt;
  &lt;/form
  </code></pre>
  <p>The button lives in the index.html. It fails to redirect to <code>newPage.html</code> in the case above. What is missing that's causing it to fail validation? any help would be greatly appreciated!</p>