refactor newAccountController with User factory