Added error messages to the UI.