I have set up a xmpp server and android client using the great post here... I have some pre defined users set up in the xmpp server and i could login with those credentials.
I solved it by developing a webservice that takes the username and password as post parameters.
If we post the username and pasword, the webservice registers a new user.
Instead of signing up from the app i found this to be rather simple...