How to validate automated unique ID generated in submission?