Add validation for displaying categories and questions