adding error flashes