@app.route('/signup',methods=["GET","POST"])
def signup():
    return render_template('signup.htm')
    password = request.form['password']
    if password =="python":
        return redirect(url_for("home"))
This is my python code for retrieving form input and then to redirect the user to the home page if the password is "python".
<form action="#" method="POST" name="password">
<input type="password" class="form-control" 
       id="exampleFormControlInput1" placeholder="Password">
</form>
This is the respective HTML code for the signup page.