Added search functionality to users. Added rspec tests for these functionalities