updated profiles controller.rb