added set token cookie for re authentication