Added validation for privilege management