added names to form field and database