Ensuring User Consent in AI Algorithms