Fix errors and flashes to only appear when they are needed