Electron acceleration and plasma instabilities in the transition region