The Bihar legislative Assembly on Wednesday passed a legislation incorporating a provision making it mandatory for candidates contesting panchayat polls in Bihar to have toilets at their houses.