fixed bugs and inconsistent behaviors in user management
Merge pull request #260 from dav3860/fix_user_management_bugs

fixed bugs and inconsistent behaviors in user management