Validating preferences
Nearly working