validate uid format, debug logs