added a custom serializer for user