Encapsulated user display name in a function