Added form validation

No support for select statement or radio button yet.