checks the API's result to see if it saved the record or not