out put invalid data and error info