Set initial value and handle validation with unselectedText properly