how to change label color when required message is shown