by entering a category, the system displays a message

by entering a category, the system displays a message "Category added" but the record is not added to the list.