added user management logic