Hazrat Habib bin Abi Thabit says that if the one who falsely accuses repents, then his testimony is valid.