updated construct function in Registration class