added condition option into text and number valid