Adds better validation for river parameters.