Optimize login call