Conditions inside of my form are not working