add basic field validation