Added field validation to resources