Update: user management

fix bugs