Pass dependent fields to custom function of 'fn' validator