have input string display error state