added check for file input to textbox