Set message key when field is empty and change color