refactored userService encapsilated user storage