create a register route and split out the register form