trimmed most form fields before saving to the database