Fixed uid/gid validation