Properly clean form on edit or submit