Fixing custom error message display.