refactor Account.register
refactor Model