modified userprofile to make fields optional