refactored users update in users