Service for validating unique codes