Fixed up account creation by making sure if there are no accounts, i create an array to hold the accounts.