Inform seller that society is refusing to transfer flat in your name as period of 2 years have not lapsed since he became member
2) ask seller to refund your money and cancel the sale deed
3) If seller refuses file complaint against seller before consumer forum and seek orders to direct seller to refund your money with interest
4) also claim litigation costs and compensation for mental torture undergone you