add isset() to index.php

if page was reached by the submit button, process data. otherwise, do
nothing but display the html.