Why unfilled required fields don't prevent form from submitting?