Add a css class to label and inputs when input value is invalid.
Consistent indent style.