Check the format of the supplied uid