* Refactored common user managemente code