My wife was working for a private school for 3 academic years, with ESIC Benefits, before her resignation in March 2016. She was 3 months pregnant when she resigned in March. She joined another school in April 2016 without ESIC Benefits as her salary in the latter school was higher. She was told to resign in 7th month of pregnancy, as she was still in probation period. She resigned in July 2016. Till 7 the month she was seeing a private doctor, in 8th month she visited esi hospital, she was accepted, she gave birth to a baby in September, she applied for maternity leave from October 2016 to December 2016, that too was accepted and the amount got credited into her bank account. My question is, was this legal or illegal to avail esi benefits at hospital and apply for maternity leave 6 months after resigning the first school ?