Always boil rice when it’s 80% done.
You can check rice grain by hand so it needs to be a little hard before draining water.
The rest of the 20% will be done on steaming.
When layering then make sure the curry should not be watery. If it is then evaporate the water. Never steam for a long time.