how to invest in real estate safely