validation API