I got duplicate id error in XHTML validation when I have two or more tags.form() with method='put'. The form() adds a hidden field with id _method which is not configurable. So my solution is set id=None at line 104.
field = hidden("_method", method, id=None)
If someone really needs to have id then please make it assignable through the form()'s argument. Thanks