#2 check data body before sending it to APIs