Replaced sesssion by session in the code