fix password once function