fixed login and be user actions by eliminating session invalidation when
switching loginContext subjects. added legend