WORKING registration using JSON!