Handled error flashes in modals