added forgotPassword functionality to the frontend and included template for the email