templates/upload/result.jinja: reimplement using WTForms