setting error label to a variable