finalized both clientside and serverside registration endpoints & functionality