added getUserByEmail method