how to receive confirmation mail if any user register or login using Nodejs?