Add .invalid class for form fields