modified user.rb & index.erb