register a customer by json