Fixed bug in validator field factory