added an error message if a user attempts to create a record that has already been created