general optimizations in user auth / login