wtforms with some fixes