Added checking authorization cookies set by rails
use glog