correcting session id in before filter method