Fixed the method in user.rb