tabs -> spaces
fixed Pointless to set session.flash before session.renew, thanks nursix