I have a simple password validation. Two input fields with icons clicking on which the user can see the entered password. The code works good. But I write two similar duplic