api calls working, login succesfull