validation for settings