fixes #4863 validation does not works for category field