Add "required" attribute to module builder generated form inputs

This will allow modern web browsers to check if an a form has been filled out properly before it is submitted to the server.