Set initial value and handle validation with unselectedText properly. FIX #5. FIX #6.