replace error type key with danger

The alert-error CSS class has been deprecated in favor of alert-danger
in Bootstrap 3. This commit makes sure error alert boxes are red.