Making the User class act more like a dictionary