added search feature to the index action of the clients contoller, and moved it into the model. Tested it with both rspec and cucumber, it's fully working.