The first condition of my form is not working