refactoring add_new_user
refactoring register_preference
Merge pull request #19 from flyingice/master

refactoring