Conditions set on form not working as expected.