I write to you, little children, because your sins are forgiven you for his name's sake.

 So John lays down his two great ethical principles; knowledge involves obedience, and union involves imitation. Therefore, in the Christian life there can never be any inducement to think lightly of sin. 