Fix login slowness