login system works, logout bit flaky