Display messages for errors and success.