Added text validation for category name field