Implemented field validation