Fix json format to register user