Fixed bug with flash messages not displaying