Update index.php

* set form name
* set form method
* set form action
* form submitted checker method