The biryani will turn mushy if the rice is overcooked. This happens if you let the rice cook completely in the water. Always make sure that the rice is around 80% cooked. This way, it will be cooked perfectly when you steam it. Also, before cooking, wash the rice thoroughly till the water runs clear.