Added User dataclass and custom login listener function to my module.