authentication #5

function regenerate token finished