added getByEmail method.