Persist flash across redirects

Flash messages were not persisting across redirects. I have attempted to fix this.