Go ahead and send in the resignation, but keep a copy of it for your own record. If the boss still says that to you, tell him/her to talk to your lawyer. At the same time, you can file a compliant to your state government, and send a copy of it to the top managementn of your company.