add registry validation