Smack account creation fails

I have been unsuccessful in trying to create accounts from the client side using smack 4.1.0, each request I try fails with this error

org.jivesoftware.smack.packet.XMPPError@38a67172
12-31 15:36:15.298  16072-18447/ W/System.err﹕ at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:197)
12-31 15:36:15.298  16072-18447/ W/System.err﹕ at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:178)
12-31 15:36:15.298  16072-18447/ W/System.err﹕ at org.jivesoftware.smackx.iqregister.AccountManager.createAccount(AccountManager.java:234)
12-31 15:36:15.298  16072-18447/ W/System.err﹕ at org.jivesoftware.smackx.iqregister.AccountManager.createAccount(AccountManager.java:211)

I have been using this snippet of code

if(mConnection != null)
      AccountManager.getInstance( connection ).createAccount("test1","testpass" );

After much further testing, I believe the error is that the account was already registered with that name, so my question is how do i detect properly if the name chosen has already been registered and to display and error or so.