Added error dialog to handle error messages; updated all ajax errors and
validation alerts to use the new error dialog;