Investing in real estate: legal side of issue