I'm trying to validate my form using the JQuery .validate() function. However the validation process works, I don't like the looks of the validation message: Especially not when I try to add a class to an input box.

As you can see, I want to change the class of all my input fields when something throws an error, however this only works with a larger text box. This is my .validate() function at the moment, stripped down:
('#form0').validate({
errorClass: "form-error",
});
My input fields have a class, name and id assigned, would it be possible to use any of those to correctly add the class to the input field? And if so, how would I be able to do this, as errorClass is not working properly for me.
Just to make sure: I want to add the class "form-error" to the input fields, so they get a red border as seen in the larger text box