Making getUserInfo return error information in addition to the data so that it is more useful as a standalone call