login/logout enhancements