Implemented updatesecret