FIX javascript checking when form has not input