/**
   * This method will check if user is present in database and will show appropriate response
   *
   * @param
   * @return success: Successful validation
   * @return error: Invalid User credentials
   * @throws Exception
   */
  public String execute() throws Exception {

    LoginServiceImpl loginObject = new LoginServiceImpl();

    String userName = (String) request.getSession().getAttribute("userName");

    boolean isTempararyPasswordValid =
        loginObject.validateLoginCredentials(userName, currentPassword);

    if (isTempararyPasswordValid) {
      boolean isPasswordReset = loginObject.updateForgottenPassword(userName, newpassword);
      if (isPasswordReset) {
        return RETURN_SUCCESS;
      }
    }
    return RETURN_ERROR;
  }