[#48028529] Adding devise to the model and handing JSON format for registration