fix in validation when value is null