Fix password once function