Phase 3 of implementing authentication