changed scope to include email, changed method to get email and username