Validation in settings dialog