Form is cleared when submitted with unfilled fields