finished the functionality for sending email, password resets