Added helper functions to store information in the session from the providers