Class Form modified to w3c validation

Closing tags in form fields generated by static input method 
for validation of the document by the W3C.