The conditions of my form are not working as they should