Why isn't my form obeying the conditions I set up for it?