validate_dists function

Check for valid distribution