State senator Eichorn resigns as first day in court in Sex scandal looms