Added selector validation while typing