Made it so that the error button will only show if there was an error