Update index.php

Added logout function.