updated register route to complement new registration