added email functionalities for new users