Fixed validation check for the minimum number of points required.