I injured my back 4yrs ago and have a herniated

Patient: I injured my back 4yrs ago and have a herniated L5 disc. I have been having problems intermittently with wetting my pants and also the bed. It is infrequent but bothersome. Are these related and what can be done to prevent this from happening?

Doctor: