Use WTForms

Use WTForms to validate user inputs.