cant get api due to not being able to login