made User singleton and a utilities class for api calls