Fix API call to api/profile/check