added error class to error text