Validating prefs