change number field processing so that validation is called before co-ercing to number type #5901