modified bug in user.rb