fix bug when password is asked in recursive call