@Override
    public String execute() {
        String actionResult = "";
        Map<String, Object> session = ActionContext.getContext().getSession();
        User user = (User) session.get("USER");
        setCurrentUserName(user.getFname() + " " + user.getLname());

        UserBusinesService userBusinesService = new UserBusinesService();
        actionResult = userBusinesService.updatePassword(user.getUserId(), password, newPassword);

        if (actionResult.equalsIgnoreCase("updated")) {
            if (user.getUprofile() == 1) {
                actionResult = "individual";
                setCurrentUserName(getCurrentUserName() + " [I]");
            } else {
                if (user.getUprofile() == 2) {
                    actionResult = "group";
                    setCurrentUserName(getCurrentUserName() + " [G]");
                } else {
                    if (user.getUprofile() == 3) {
                        actionResult = "admin";
                        setCurrentUserName(getCurrentUserName() + " [A]");
                    }
                }
            }
        } else {
            if(actionResult.equalsIgnoreCase("psdInput"))  {
                log.info("ActionResult--->"+actionResult);
                addFieldError("newPassword", "Please insert correct password. ");   
                if(user.getUprofile()==3){
                actionResult="inputAdmin";
                }else{
                if(user.getUprofile()==2){
                    actionResult="inputGroup";
                }else{
                actionResult="inputIndividual";
                }
                }
               
            }
        }
        return actionResult;
    }