2 flag validation