add category field to activity and test for null name parameters