Added javascript onsubmit event handler.
Fixed typo in inputs names.