merged auth fixes
Revision of login state management. fix #452
Merge pull request #453 from offtherailz/fix_auth_map_manager

Fix auth map manager. fix #452