added fields in the form, storing these fields in the database. some changes in layouts