adding email function when users sign up