Add basic descriptor validation logic.