closes #26: implemented field validators