Added field type validity error checking