Added min and max length validation for text boxes