added the error class for lightbox