implementing password recover and password reset functionality. with simple email send function