changed  user.rb file in app models