Added in session functions to deal with flash values