merged with activation code of memberRegistration.js