Added check to prevent duplicate entries with same email