I need to send the user email to my server as soon as the user logs in or registers using the default login option, then I am not able to get the user name or email using vanilla javascript or Jquery code. I always get the value as undefined. Kindly help me out!!