added email uniqueness check at database level