added required fields and a script to circumvent shortcomings in Safari and IE, does not work yet