fixed problem in validation length of cf if tax_code if nil