Form logic not working in Internet Explorer