Assigns an error message to the control