input format for form validate