validating uniqueness of title in categories