Fix the forms to use directly wtforms instead of flask-wtf

There has been a release of flask-wtf that stopped providing the interface to wtforms.
This commit allows us to deal with these changes in flask-wtf