form validation with wtforms almost figured