Index is php now
Login and logout fixed. Minor index.php changes.