Fixed several bugs in form, validation
Fixed bug with multiple simultaneous forms

Signed-off-by: Alexander Book <redchrome@gmx.de>