amended forgotPasswordDlg.js with REST method