How to use same WebElement Multiple times?

WebElement username = driver.findElement(By.id(“username”));
username.click();
username.sendKeys(“ok”);

        //password
        WebElement password = driver.findElement(By.id("password"));
        password.click();
        password.sendKeys("123456");
        
        //login
        WebElement Login = 

driver.findElement(By.xpath("/html/body/div[2]/div[2]/div[2]/section/div/div/div/div[1]/div/div[2]/form/button" ));
Login.click();

/////this below part is not working

          username.sendkeys("ok");
          password.sendkeys("123456");
          Login.click();
  1. forget about such awful xPath and switch to CSS with web
  2. find elements right before action or use java annotations that do same job
  3. add fail logs