Changing user.rb file acc to global rules