Using global input:invalid and input:valid CSS style