Complete authentication procedure