Minor css fix: <legend> tag must be in <fieldset> tag. This has no incidence on the appearance.
Minor css fix: <div> tag closed but not opened.