Removed valid_form check as only valid forms reach that function.