hide token if connection successed.