added some validations to search box