edited the validation checker for gids