Initial conversiof form implementation to WTForms