make sure the request was successful