add search functionality to user model
resolved #50