Fix forms for future flask-wtf

From 0.9.0 flask-wtf does not import from wtforms anymore, thus we have to do it
ourself.