refactoring add_new_user
refactoring register_preference