What you should know about real estate before investing