add validation to textbox.