If your loosing weight rapidly you will eat into your muscle too as well as fat stores. However, resistance training can help prevent this muscle loss, but not entirely. The goal should be to try to improve strength on each exercise as that is a fair indicator the muscle quantity is improving...