Security topics in identity systems