Updated user.rb and searches_controller.rb