Alternate method for adding form error class