fixed session to contain error message