Added function to lookup a user by email