Flash and error messages sorted.