Drop warnings
uid() returns an unsigned int so use an unsigned it for populate(); also check if the user is valid
Merge pull request #6 from ascarpino/master

Drop warnings