Added some error messages in the UI.