I am trying to create user using smack client 4.1.2. I am getting below error.

```
Send XML on stream = <<"<iq from='abc.example.com' to='admin@abc.example.com/Smack' id='Dym8b-14' type='error'><query xmlns=jabber:iq:register><password>xxxxxx</password><username>user</username><registered/></query><error code=403 type=auth><forbidden xmlns=urn:ietf:params:xml:ns:xmpp-stanzas/></error></iq>">>

```

My ejabberd config looks like below (.yml file)

```
register_from:
admin: allow
...
access_from: register_from
access: register

```

I am still getting above error. Please help

Adding code snippet to show how I create new user using smack 4.1.0

```
connection = new XMPPTCPConnection(getConnectionConfiguration());
                connection.connect();
                connection.login("admin", "admin");
                if(connection.isAuthenticated())
                {
                    AccountManager accountManager = AccountManager.getInstance(connection);
                    accountManager.sensitiveOperationOverInsecureConnection(true);
                    accountManager.createAccount(userName, password);
                    connection.disconnect();
                    // The account has been created, so we can now login
                    connection.login(userName, password);
                }

private XMPPTCPConnectionConfiguration getConnectionConfiguration()
{

    XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()
              .setServiceName("abc.example.com")
               .setHost("abc.example.com")
               .setPort(5222)
              .build(); 

    return config;
}

```