Error flash only appears when there are errors