Adding validation to referral