Validations of the status in set referral code