What you need to know before investing in property