How to correctly get username's email address using API