fix  task list NilClass error when not logined