Update index.php

just edited this to include logout if they happen to be logged in
Merge pull request #51 from mmallette/patch-40

Update index.php