Validate settings.