Condition of my form is not working.