add wtforms support and flashes