fixed createAccount logic