normalize_attributes for form