Can not submit my form because of a condition