Added responsive scaling to error messages for small screens.
Added dollar signs to regexp (thanks @meshy).