add register and login get token