added email uniqueness code