Added serialization of user