Added setting validation on input change, with visual feedback.