Writing data entry in registry