Update index.php

changed the code to fix the issue #1
--- isset issue
--- veriable not set