On the sample complexity of estimation in logistic regression