check if uid exists