High court upholds mortgage lenders' registry