Add console logging to find out why the select fields aren't populated