Educational attainment and urban success