Added validation for input text box