user affiliate logic implemented