added loginc to post render. added pre render