finish authentication