ewPassword.setCustomValidity('Old and new password cannot be same');
              newPassword.style.color = 'red';
              newPassword.previousElementSibling.style.color = 'red';
          } else {
              newPassword.setCustomValidity('');
              newPassword.style.color = 'black';
              newPassword.previousElementSibling.style.color = 'black';
          }
      });
      //new and confirm passwords are not same
      confirmPassword.addEventListener('input', function () {
      