Fixed missing toggle of error/valid class on input element