validations for search & add