fix field validation