add password login patch