added simple validation for marking labels