Added error class to span tag