added is_name_already_used method in the model