Adding validation to prevent duplicate email addresses