getting the users model to communicate with api