Use attr() instead of prop()

Check element attr for "required" rather than prop, in order to ensure IE checks this attribute. (IE doesn't consider required to be a property, only an attribute)
Merge pull request #447 from cs462-unikent/bug/fix-ie-required-bug

Fix for "required" field bug in IE