Update FlashMessage to use Flashbag

session.hasFlash is deprecated and we are now using the Flashbag to get all Flash Messages.