add search function for user