mark invalid/valid