Added an extra class to inform the user if an error occurred