Adds bootstrap and the html5 'required' attributes to formfields.