Removing unnecessary form elements