Update index.php

updated for removiind session variable check