Modified to return an error message if the category already exists in the database for that user.
Forgot the return key word