update sessions and error messages