Changes needed to allow registration over JSON