private boolean updatePassword(HttpServletRequest request) {
        System.out.println("MSS: updatePassword()");
        String password = "";
        String oldPwd = request.getParameter("oldPwd");
        String newPwd = request.getParameter("newPwd");
        String confirmNewPwd = request.getParameter("cfmPwd");
        Vector student = mrsb.getStudent(matricNumber);
        if (student.get(1).equals(loggedInAs)) {
            password = (String) student.get(2);
        }
        if (!mrsb.checkPassword(password, oldPwd) || !newPwd.equals(confirmNewPwd)) {
            return false;
        }
        return mrsb.changePassword(matricNumber, newPwd);
    }