Foster parents lose license over spanking