backup data for forms, fix php errors due to empty var