fixing a bug with the accounts when its undefined
Merge pull request #4 from chilicheech/refactor

fixing a bug with the accounts when its undefined