Adding validators for settings.