Added a little verification for textbox.