Add removeElement() method to the Form class