Fixing bug with is_authenticated().