finializing authentication