Recognition of law as a way to protect housing rights