Add id to permitted attributes.