Achieving both valid and secure logistic regression analysis on aggregated data from different private sources