Rental contract and registration
In Portugal rental contracts have to be registered with the tax authority (Finanças). The landlord usually does it; if not, you can. It protects you and is needed for some visa or residency stuff. In Spain long-term contracts are often registered with the regional housing body. Ask for a copy.