added field validation