Added possible fix to user.rb