Make calls to API to authenticate user