Fix logout bug, added logout link