update secretkey field