logout, login, bug fix