Change index.html

changed some you wrong format and added some required functions from the
form without using javascript alerts and using html5 new function