Prevent duplicated userids