Added validation to category