Authenticate API call now working (iOS)