Adds email functionality for sign up and password reset