login/logout update fixed #8