Resolving NoMethodError in user privacy