Code style
Added support for login/logout roles and messages