add api that validate existing id