CreateAccount as util function