Added proper message types for flashing a custom error on screen.