successful check changed from response message to response code