fix validate_form