move user_details functionality to user serializer