Modified findUsername() API call to fix bug with JSON