Conditional logic to display full sentence error and success messages