CURVALID: Geometrically-guided Adversarial Prompt Detection