finished authentication method