added basic form handling.