updated register template to add required fields