validations & search function working as well