fix first invalid on replaced input widgets in modern browsers + style adjustments