Update Form.php

Set "required" attribute to elements provided by the elements to the input filter