Update form.php

Improved setFieldAttribute method to merge new attributes instead of setting 'em which deletes existing attributes that might yet be required.