How to allow browser's autofill data to trigger conditional logic in a form?