some validation control functions