fixed validation for ie8