To prevent oversalting in the future, always add salt gradually and taste as you cook. Using measuring spoons instead of pouring directly from the salt container can also help.