How to secure property investment legally