Why is my form being processed even though the required fields are empty?