validate model error edited