Updated code of adding new demographic fields (#172)

--Added test cases--
--Modified user Interface --