added serialize method to CaseUser