Flask jinja2.exceptions.UndefinedError: ‘form’ is undefined* [RESOLVED]

Solution
@app.route('/register',methods=['POST','GET'])