reword form.validate check in accordance to pep (E712)