validating settings.