Fixed some important problem with sessions. Now it should work properly