allow the user to register on the fly via json api