fixes #4863 validation does not works for category field
Merge pull request #5117 from dotCMS/issue-4863-validation-does-not-works-for-category-field

fixes #4863 validation does not works for category field