Add category validation to constructor