Added input validation to the textboxes