added form and data error messages