conditions workes not properly on my form