fixing initializing of variables that causes PHP Warnings AND  sanitizing in index.php