Implemented logout function, index.php