Having trouble setting conditions for my form