[login] add loginCache and spelling fix