What are the legal requirements for a mortgage?