Added flashes for more errors