typically one would not pin-point or otherwise tell the user exactly what is wrong with the input. either restrict the character set in the input (i.e. per keystroke) or just tell them it's not valid and what the valid characters are. unless that's the whole point of the application.
the hardest line to type correctly is: stty erase ^H