Validation for Deposit ref_number

In cases when the deposit is given as payment then the reference number
must be provided.