What is a real estate broker agreement and why is it legally important?