JC: for misc definition and log, changed to use hidden field from session variable. spec passes.