Update form.php

Removed changes accidentally made to this PR. These relate to another PR (https://github.com/joomla/joomla-cms/pull/3143)