Pulling my hair out trying to implement WTForms.