add check token method for demo