Update create account

Updated the `createAccount` function to take name as a parameter