Avinash Chander quits SAD, resigns as legislator also