Refactor addUser and delUser