using getpwent() instead of reading passwd file to check for users with bad uid