From what you have described it sounds like your husband either has a hemmorhoid or suffered a small tear during defecation. The way to prevent this from happening is to make sure the stool never becomes too hard and passes from the body without strain...drinking sufficient water is one of the keys.