I think you have to check the contract once more...if there is anything mentioned regarding breaking the contract and its compensation. Normally in every contract it will be mentioned one month rent as compensation for breaking the contracts.

THe landlord has no right to ask for complete remaining periods..but he may can ask maximum 2 months rent...but see to it its one month rent...

regards