Correct user id generation