Validate category before adding