display error and dismiss modal if token is bad