Added a clear flash message function.