Made sure that the user cannot create or edit an exercise with the same
name as an existing one.