Validates setting attributes