Added alert dialog boxes which allow the user to be notified if there is an error or issue with their message.