Rental externality, tenure security, and housing quality