You should ask the seller to obtain an NOC (No Objection Certificate) from the society in order to confirm that all dues have been cleared with the society.