3D antiferromagnetic ordering in cuprates: A Kosterlitz thouless transition