Replaced HTML forms with WTForms.