finish authenticate