form element ID added and closed tags

For accessibility purposes, and to make the form validate at the W3C HTML validator, every element needs an ID which corresponds the the label for= name.

Also, the two hidden form elements where not properly closed which made the form fail to validate.