uid() returns an unsigned int so use an unsigned it for populate(); also check if the user is valid