same here, you need to check if there are no errors yet before checking for duplicates