added data aggregation method to form validator