fix password login bug