added validation to category add page