Added JSON reply to registration API