Restricting access to the User dataclass.