fix ie8 support and form validation