Add error class for input fields in form