update directive validation