refractoring for updating users
Merge branch 'updating-users'