use hashfields for validation