Correct code example in Security chapter