modified user.rb after an error