move calculation of gender distribution to the beginning of onLogin so that we have gender distribution when users go to project page directly