Fixed control attribute validation to check optional attributes