fix password edit error when validation fails