error handler underlines bad input

however, the error message is missing spaces :-(