Why my form keeps asking to fill required fields when they are filled?