Changed CreateCategory (added check) + small changes

Finally, we consider that a user can't create two categories with the
same name.