Adding missing functionality for createAccount()