validate .selector and .context