corrected typos and adjusted  imports to v0.9 of flask-wtf