public void editUser(User editUser, String newName, String newEmail, String newPassword) {
        String email = editUser.getEmail();
        for (User u : usersList) {
            if (u.getEmail().equals(email)) {
                u.setName(newName);
                u.setEmail(newEmail);
                u.setPassword(newPassword);
            }
        }
    }