Fixed some bugs in the forms, added htmlforms example