Adding error class on form element for displaying help block as error