added field type validation