Fixing json parsing of registratoin