added email uniqueness checks