Avoid Legal Pitfalls When Investing in Real Estate