Update index.php

just edited this to include logout if they happen to be logged in