After reading the answers, let me clarify.
The conditions for withdrawing the housing provident fund have been explained above, so I will add some more. The house rental contract required to withdraw the housing provident fund needs to be your rental contract. The rental contract signed by your cousin is not your rental contract, so you cannot apply for the rental provident fund with this rental contract.
In addition, the regulations in each city are different, and some cities do not require a rental contract for the house.