added logout feature and cleaned up index.html