I can\'t work out why Wtforms is not preventing submission of the form when an error is detected. Instead of displaying the error message it submits the form and then I get