Refactored get and update user into service